package com.ybg.demo.consul.consumer.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(value = "producer")
public interface UserFeign {

    @PostMapping(value = "/user/login")
    Map<String, Object> login(@RequestParam("loginName") String loginName, @RequestParam("password") String password);

}
